package InterfaceWay;
public class  Hero extends Object{
		public String name;
		public int hp;
		public int age;
		public static void battleWin() {
			System.out.println("hero battle win ");
		}
		
		
		
		public void moveSpeed() {
			
		}
		
		
		
		public static void main(String[] args) {
//			ADHero ad = new ADHero();
//			Hero h = ad;//true
//			AD adi = (AD)h;//true
//			APHero ap = (APHero)adi;//false
//			
			
			Hero h = new Hero();
			ADHero ad = new ADHero();
			
			h=ad;
			
			ad=(ADHero)h;
			
			
//			System.out.println(adi instanceof );
		}
}
